<%--
  Created by IntelliJ IDEA.
  User: MING
  Date: 2018/8/10
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html class="loginHtml">
<head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
    <title>登陆页面</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="static/images/favicon.ico">
    <link rel="stylesheet" href="static/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="static/css/public.css" media="all" />
</head>
<body class="loginBody">
<form class="layui-form">
    <div class="login_face"><img src="static/images/face.jpg" class="userAvatar"></div>
    <div class="layui-form-item input-item">
        <label for="userName">用户名</label>
        <input type="text" placeholder="请输入用户名" autocomplete="off" id="userName" class="layui-input" lay-verify="required">
    </div>
    <div class="layui-form-item input-item">
        <label for="password">密码</label>
        <input type="password" placeholder="请输入密码" autocomplete="off" id="password" class="layui-input" lay-verify="required">
    </div>
    <div class="layui-form-item input-item loginRefresh" id="imgCode">
        <label for="code">验证码</label>
        <input type="text" placeholder="请输入验证码" id="code" class="layui-input" lay-verify="required">
        <img id="captchaimg" src="kaptcha.do" style="width: 100px; height: 38px" title="看不清可单击图片刷新" onclick="this.src='kaptcha.do?d='+Math.random();">
    </div>
    <div>
        <input type="checkbox" name="rememberMe" id="rememberMe" lay-skin="primary">7天免密登录
    </div>
    <div class="layui-form-item">
        <input type="button" class="layui-btn layui-btn-normal" id="loginChange" value="登 录" style="width: 100%; font-size: 18px;" onclick="login()"/>
    </div>
</form>
<script type="text/javascript" src="static/layui/layui.js"></script>
<script type="text/javascript" src="static/js/index/index.js"></script>
</body>
</html>